// 该文件专门用于创建整个应用的路由器
import About from "../pages/About";
import Home from "../pages/Home";
import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
    {
        path: '/about',
        component: About
    },
    {
        path: '/home',
        component: Home
    }
]

const router = createRouter({
    history: createWebHashHistory(process.env.BASE_URL),
    routes
})
export default router;